initialize
Initializes the control with its associated module context.
This method is typically called once before the control is first used or made active. It allows the control to set up its internal state, resources, and prepare for operation based on the provided data.
If #isAutoStart() is true, implementations might also trigger their start logic within or immediately after initialization.
Initializes the StaticImageView using settings from the provided com.reveldigital.player.api.Module. This involves parsing Option values to determine the image source (either "File" or "Url") and "ScaleType".
- If "File" is specified, it attempts to load the image directly from the local file system. SVG files are handled by loadSVG, other formats by decoding a sampled bitmap.
- If "Url" is specified, it initiates an asynchronous download of the image using DownloadFileTask2. The downloaded file is then processed.
- "ScaleType" option can be "Fill" (maps to FIT_XY) or "Center" (maps to FIT_CENTER).
Parameters
The module data containing configuration options for the static image. This is typically the same module instance passed during construction but is re-asserted here as per the RevelControl interface.